
#ifndef _BSP_FLASH_H_DJFLDSJFLJ4123123124123123
#define _BSP_FLASH_H_DJFLDSJFLJ4123123124123123

#include <stdint.h>
#include "bsp.h"

int32_t flash_erase_page(uint32_t page_number);
int32_t flash_prog_page(uint32_t page_number, uint8_t* p);
int32_t flash_prog_1K(uint32_t addr_start, uint8_t* p);

int32_t flash_prog_u32(uint32_t* addr_flash, uint32_t* p, uint32_t cnt);

#endif


